package com.weijin.service;

import com.weijin.model.entities.Record;
import com.weijin.model.from.AttendanceFrom;

import java.time.LocalDateTime;

/**
 * 考勤服务接口
 *
 * @Author WeiJin
 * @Version 1.0
 * @Date 2025/3/28 10:53
 */
public interface IRecordService {


    /**
     * 签到
     *
     * @param attendanceFrom 签到入参
     * @return 签到记录
     */
    Record signIn(AttendanceFrom attendanceFrom);

    /**
     * 签退
     *
     * @param attendanceFrom 签退入参
     * @return 签退记录
     */
    Record signOut(AttendanceFrom attendanceFrom);

    /**
     * 获取今日签到记录
     *
     * @param userId   用户id
     * @param dateTime 签退时间
     * @return 签到记录
     */
    Record queryTodaySignInRecord(String userId, LocalDateTime dateTime);


}
